﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Net;

namespace MikeSoft.Tool.Common
{
    public static class Common
    {
        public static string GetAllIP()
        {
            IPAddress[] ip = Dns.GetHostAddresses(Dns.GetHostName());
            int count = ip.Length;
            string allIP = string.Empty;
            for (int i = 0; i < count; i++)
            {
                if (i > 0)
                    allIP += "——" + ip[i].ToString();
            }
            return allIP;
        }
    }
}
